<script>
export default {
  components: {},
  data () {
    return {
      radio: 0,
      activeName: '1',
    };
  },
  computed: {
    isButtonDisabled() {
      return this.radio === 0;
    }
  },
  methods: {
    check(radio) {
      console.log(radio)
      if (radio === 3) {
        this.$message.success('恭喜你，答对啦！')
      } else {
        this.$message.error('很遗憾，答错啦！')
      }
    },
  }
}
</script>

<template>
  <div>
    <div>
      <h1 align="center">3.8 反编译技术</h1>
      <el-divider></el-divider>
      <h3>反编译技术</h3>
      <ul>
        <li style="margin-left: 2em;"><a href="/read/CTF-All-In-One/doc-5.11.1_retdec.md" data-pid="160852" target="_blank">5.11.1 RetDec</a></li>
      </ul>
      <el-divider></el-divider>

      <h3>反编译技术主要用于：</h3>
      <el-radio-group v-model="radio">
        <el-radio :label="1">加密文件解密</el-radio>
        <el-radio :label="2">恶意软件检测</el-radio>
        <el-radio :label="3">将机器码转换为高级编程语言</el-radio>
        <el-radio :label="4">网络安全监控</el-radio>
        <el-button type="primary" plain :disabled="isButtonDisabled" @click="check(radio)">检查</el-button>
      </el-radio-group>
    </div>
    <el-divider></el-divider>

  </div>
</template>

<style scoped>

</style>